﻿<%@ Page language="c#" Codebehind="Listview.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Approve.Listview" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>Listview</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<style type="text/css">
table {
	width:100%;
	border:none;
}
table th {
	background:#ccccff;
}
table th, table td {
	padding:3px;
}
table td span a, table td span a:visited {
	color:#fff;
}
.active1 {
	background:#1a499d;
}
.active2 {
	background:#337fb2;
	color:#fff;
	font-weight:bold;
}
.tabnavhead {
	text-align:right;
	position:relative;
}
.tnc {
	float:left;
	width:90px;
	height:30px;
	margin:0 0 0 5px;
	position:relative;
	bottom:0px;
}
.tnc a {
	width:90px;
	height:26px;
	display:block;
	padding:4px 0 0;
	text-align:center;
	line-height:26px;
	color:#fff;
}
.tnc a:visited {
	color:#fff;
}
.tnc a:hover {
	color:#ff0;
}
.path .right {
	padding:6px 0 0;
}
.redButtonCss {
    font-family: "Tahoma", "宋体";
    font-size: 9pt; color: #0066cc;
    border: 1px #93bee2 solid;
    background-image:url(/Images/redbuttonbg.gif);
    background-color: #fff;
	cursor:pointer;
    font-style: normal ;
}
</style>
<script language="javascript">
		
		function selectAll(){
			var len=document.Approve.elements.length;
			var i;
		    for (i=0;i<len;i++){
			if (document.Approve.elements[i].type=="checkbox"){
		        document.Approve.elements[i].checked=true;								
						 }
					}
				}

		function unSelectAll(){
	          var len=document.Approve.elements.length;
	          var i;
	          for (i=0;i<len;i++){
	               if (document.Approve.elements[i].type=="checkbox"){
	                  document.Approve.elements[i].checked=false; 
	               }   
	        	 } 
		    }		

		</script>
	</head>
<body>
<form id="Approve" method="post" runat="server">
<div class="m">

  <div class="path">
  <span class="right"><asp:Panel id="PanFunction" runat="server"><input class="redButtonCss" onclick="selectAll()" type="button" value="全部选择"> <input class="redButtonCss" onclick="unSelectAll()" type="button" value="全部取消"> <asp:Button id="btnApproveDocument" runat="server" Text="批阅文档" CssClass="redButtonCss"></asp:Button> <asp:Button id="btnThowAwayDocument" runat="server" Text="丢弃文档" CssClass="redButtonCss"></asp:Button></asp:Panel></span>
    <a href="/SubModule/UnitiveDocument/">我的桌面</a> >> 我的文档 >> 待审批</div>
    <div class="con">
		<div class="tabnav">
        <p class="tabnavhead"> <span class="active1 tnc"> <a href="../NewDoc/Listview.aspx">已归档</a> </span> <span class="active2 tnc"> <a>待审批</a> </span> </p>
      </div>
        <asp:DataGrid id="dgMyApprove" Width="100%" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" PageSize="15" AllowCustomPaging="True" OnPageIndexChanged="DataGrid_PageChanged" DataKeyField="DocID" HorizontalAlign="Left" BorderColor="#337FB2" BorderWidth="1px" CellPadding="3" OnSortCommand="DataGrid_SortCommand">
	        <AlternatingItemStyle   HorizontalAlign="Center" BackColor="#E8F4FF"></AlternatingItemStyle>
	        <ItemStyle   HorizontalAlign="Center"></ItemStyle>
	        <HeaderStyle   HorizontalAlign="Center" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
	        <FooterStyle HorizontalAlign="Center"></FooterStyle>
	        <Columns>
		        <asp:TemplateColumn HeaderText="◎">
			        <HeaderStyle Width="5%"></HeaderStyle>
			        <HeaderTemplate>
				        ◎
			        </HeaderTemplate>
			        <ItemTemplate>
				        <asp:CheckBox id="DocID" runat="server"></asp:CheckBox>
			        </ItemTemplate>
		        </asp:TemplateColumn>
		        <asp:HyperLinkColumn DataNavigateUrlField="DocID" DataNavigateUrlFormatString="../Document/BrowseDocument.aspx?DocID={0}"
			        DataTextField="DocTitle" SortExpression="DocTitle" HeaderText="文档标题">
			        <HeaderStyle HorizontalAlign="Left" Width="35%"></HeaderStyle>
			        <ItemStyle HorizontalAlign="Left"></ItemStyle>
		        </asp:HyperLinkColumn>
		        <asp:BoundColumn DataField="DocViewedTimes" SortExpression="DocViewedTimes" HeaderText="浏览次数">
			        <HeaderStyle Width="10%"></HeaderStyle>
		        </asp:BoundColumn>
		        <asp:TemplateColumn SortExpression="DocAddedBy" HeaderText="上传人">
			        <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
			        <ItemStyle HorizontalAlign="Center"></ItemStyle>
			        <ItemTemplate>
				        <asp:Label ID="Label1" runat="server" Text='<%# GetRealNameStr(DataBinder.Eval(Container, "DataItem.DocAddedBy").ToString()) %>'>
				        </asp:Label>
			        </ItemTemplate>
		        </asp:TemplateColumn>
		        <asp:BoundColumn DataField="ClassName" SortExpression="ClassName" HeaderText="所属项目">
			        <HeaderStyle Width="20%"></HeaderStyle>
		        </asp:BoundColumn>
		        <asp:BoundColumn DataField="DocAddedDate" SortExpression="DocAddedDate" HeaderText="上传时间">
			        <HeaderStyle Width="20%"></HeaderStyle>
		        </asp:BoundColumn>
	        </Columns>
	        <PagerStyle NextPageText="下一页"   PrevPageText="上一页" HorizontalAlign="Right"
		        ForeColor="White" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
        </asp:DataGrid>

  </div>
</div>
		</form>
</body>
</html>
